package com.rd.sys.dto.client.analysis.config;

import baseproj.common.constants.BaseEnum;

/**
 * 公共配置参数
 * 
 */
public class CommonConfig {

    /**
     * 参数名
     * 
     */
    public enum Key implements BaseEnum {
        VideoPlaySpeed("cfg_video_play_speed", "播放速率",
                "设置视频播放速度。1x表示用录制的同样速率正常播放，2x表示2倍速来快速播放，0.5x表示0.5倍速来慢速播放。该参数用于研究视频播放时的眼动效果。");

        private String code;
        private String name;
        private String description;

        private Key(String code, String name, String description) {
            this.code = code;
            this.name = name;
            this.description = description;
        }

        private Key(String code, String name) {
            this.code = code;
            this.name = name;
        }

        @Override
        public String getCode() {
            return this.code;
        }

        @Override
        public String getName() {
            return this.name;
        }

        public String getDescription() {
            return description;
        }

    }

    public enum VideoPlaySpeed implements BaseEnum {

        PlaySpeed_05("0.5", "0.5x"), PlaySpeed_1("1", "1x"), PlaySpeed_2("2", "2x");

        private String code;
        private String name;

        private VideoPlaySpeed(String code, String name) {
            this.code = code;
            this.name = name;
        }

        @Override
        public String getCode() {
            return this.code;
        }

        @Override
        public String getName() {
            return this.name;
        }
    }
}
